/*
*所有关于SysQuartzOptions类的业务代码接口应在此处编写
*/
using System.Threading.Tasks;
using TradeDataAPI.Entity.DomainModels;

namespace TradeDataAPI.System.IServices
{
    public partial interface ISysQuartzOptionsService
    {

        /// <summary>
        /// 手动执行一次
        /// </summary>
        /// <param name="taskOptions"></param>
        /// <returns></returns>
        Task<object> Run(SysQuartzOptions taskOptions);
        /// <summary>
        /// 开启任务
        /// </summary>
        /// <param name="schedulerFactory"></param>
        /// <param name="taskOptions"></param>
        /// <returns></returns>
        Task<object> Start(SysQuartzOptions taskOptions);
        /// <summary>
        /// 暂停任务
        /// </summary>
        /// <param name="schedulerFactory"></param>
        /// <param name="taskOptions"></param>
        /// <returns></returns>
        Task<object> Pause(SysQuartzOptions taskOptions);

    }
}
